const mutations = {
    setUserInfo(state, data) {
        state.userInfo = data
        localStorage.setItem('userInfo', JSON.stringify(state.userInfo))
    },
    setAreaTreeSelectedId(state, data) {
        state.areaTreeSelectedId = data
        localStorage.setItem('areaTreeSelectedId', JSON.stringify(state.areaTreeSelectedId))
    },
    setFieldList(state, data) {
        state.fields = data
        try {
            localStorage.setItem('fields', JSON.stringify(state.fields))
        } catch {}
    },
    setApplyState(state, data) {
        state.applyState = data
        localStorage.setItem('applyState', JSON.stringify(state.applyState))
    },
}
export default mutations
